package com.lb;

import com.lb.spring.UserService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * 功能描述: <br>
 * @Author: Edward
 * @Date: 2022/1/18 8:43
 */
//@MapperScan("com.lb.annotationmapper")
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class MyTestApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(MyTestApplication.class, args);
        UserService userService = applicationContext.getBean(UserService.class);
        userService.hello();
    }

}
